package com.javaclimb.filmbuy.dao;

import com.javaclimb.filmbuy.entity.AdminInfo;
import com.javaclimb.filmbuy.entity.CartInfo;
import com.javaclimb.filmbuy.vo.AdminInfoVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 收藏dao层
 */
@Repository
public interface CartInfoDao extends Mapper<CartInfo> {
    /*根据用户名查询收藏列表*/
    List<CartInfo> findCartByUserId(@Param("userId")Long userId,@Param("level")Integer level);

    /*查询所有的收藏列表*/
    List<CartInfo> findAll();

}

